package com.czy.ekp.cmd;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/cmd")
public class CmdController {

    @Autowired
    CmdService cmdService;

    @PostMapping("/doWork")
    public String doWork(String id, String params){
        return cmdService.exec(id, params);
    }


}
